# -*- coding: utf-8 -*-

# from PIL import Image
# from config import config
#
#
# class ImageSelf(Image):
#
#     size = config.get('THUMBNAIL_SIZE')
#
#     # def __init__(self, imagePath):
#     #     self.imagePath = imagePath
#     #     self.image = Image.open(self.imagePath)
#
#     def thumbImage(self, imagePath):
#         self.imagePath = imagePath
#         self.image = Image.open(self.imagePath)
#         self.thumbnail(self.size)
#         self.save(self.imagePath)
